<div class="main">
<form id="aclListForm" target="hiddenwin" method="post" action="<?php echo U('admin/acl/sort');?>">
  <table id="aclList" class="table table-condensed table-hover table-striped tablesorter table-fixed">
    <thead>
    <tr class="colhead">
        <th class="w-id">
            <div class="headerSortUp"><a href="#">ID</a></div>
        </th>
        <th class="w-id">
            <div class="header"><a href="#">排序</a></div>
        </th>
        <th>
            <div class="header"><a href="#">功能名字</a></div>
        </th>
        <th>
            <div class="header"><a href="#">模块名</a></div>
        </th>
        <th>
            <div class="header"><a href="#">类名</a></div>
        </th>
        <th>
            <div class="header"><a href="#">函数名</a></div>
        </th>
        <th>
            <div class="header"><a href="#">是否显示为菜单</a></div>
        </th>
        <th>
            <div class="header"><a href="#">备注</a></div>
        </th>
        <th>
            <div class="header"><a href="#">加入日期</a></div>
        </th>
        <th class="w-120px">操作</th>
    </tr>
    </thead>
    <tbody>
        <?php foreach($list as $key => $value): ?>
        <tr class="text-center">
            <td>
                <input type="checkbox" name="ids[]" class="ids" value="<?php echo $value['id']; ?>"> <?php echo $value['id']; ?>
            </td>
            <td><input type="text" name="sort[<?php echo $value['id']; ?>]" value="<?php echo $value['sort']; ?>" class="w-sort w-60px form-control" style="height:25px;text-align:center;"></td>
            <td><?php echo $value['name']; ?></td>
            <td><?php echo $value['module']; ?></td>
            <td><?php echo $value['class']; ?></td>
            <td><?php echo $value['action']; ?></td>
            <td><?php echo $value['display'] == 1 ? '是' : '否'; ?></td>
            <td><?php echo $value['mark']; ?></td>
            <td><?php echo date('Y-m-d H', $value['add_time']); ?></td>
            <td class="a-left w-120px">
                <?php echo HTML::aclEdit('acl', 'edit', $value); ?>
                <?php echo HTML::aclDelete('acl', 'delete', $value); ?>
                <!--
                <a title="编辑功能菜单" class="btn-icon " target="" href="<?php echo U('admin/acl/edit', array('id' => $value['id']));?>"><i class="icon-common-edit icon-pencil"></i></a>
                <a class="btn-icon" title="删除功能菜单" target="" href="javascript:ajaxDelete('<?php echo U('admin/acl/delete', array('id' => $value['id']));?>','aclList',confirmDelete)"><i class="icon-remove"></i></a>
                -->
            </td>
        </tr>
        <?php endforeach; ?>
    </tbody>
    <tfoot>
    <tr>
        <td colspan="10" style="padding-left:8px;">
            <div class="table-actions clearfix">
                <div class="input-group">
                    <a href="javascript:selectAll('')" class="btn btn-select-all" id="allchecker">全选</a>
                    <a href="javascript:selectReverse('')" class="btn btn-select-reverse" id="reversechecker">反选</a>
                </div>
                <?php echo HTML::aclSort('acl', 'sort'); ?>
                <?php echo HTML::aclDeleteAll('acl', 'delete'); ?>
                <!--
                <button class="btn btn-submit btn-default" id="submit" type="submit" data-submitting="提交中...">排序</button>
                <a class="btn btn-submit btn-default btn-danger" onclick="ajaxDeleteSelect('<?php echo U('admin/acl/delete');?>','aclList',confirmDelete, 'ids')" >批量删除</a>
                -->
            </div>
            
            <div class="" style="float:right; clear:none;">
                <?php echo $page; ?>
            </div>
        </td>
    </tr>
    </tfoot>
  </table>
</form>
</div>